.model-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.model-selector-dialog {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.model-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.header-content {
    flex: 1;
}

.model-selector-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #fff;
}

.model-selector-subtitle {
    color: #999;
    font-size: 0.8em;
    margin-top: 4px;
}

.model-selector-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

.model-selector-section {
    margin-bottom: 20px;
}

.model-selector-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.model-card {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.model-card:hover {
    background: #333;
    transform: translateY(-2px);
}

.model-card.selected {
    border-color: #4a9eff;
    background: #2a2a2a;
}

.model-preview {
    width: 100%;
    height: 100px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.model-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-preview.no-image {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
}

.model-name {
    text-align: center;
    color: #fff;
    font-size: 0.9em;
    margin: 0;
}

.model-selector-promo {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 6px;
    padding: 10px;
    margin: 0 0 20px 0;
    text-align: center;
    color: #fff;
    font-size: 0.85em;
    line-height: 1.4;
}

.model-selector-promo a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: bold;
    margin: 0 4px;
}

.model-selector-promo a:hover {
    text-decoration: underline;
}

.model-selector-promo .price {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #4a9eff;
    font-size: 0.9em;
    margin-left: 4px;
} 